
<%@ page import="net.comic.entities.AlterPage" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="alterPage.create" default="Create AlterPage" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="alterPage.list" default="AlterPage List" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="alterPage.create" default="Create AlterPage" /></h1>
            <g:if test="${flash.message}">
            <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
            </g:if>
            <g:hasErrors bean="${alterPageInstance}">
            <div class="errors">
                <g:renderErrors bean="${alterPageInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="createdBy"><g:message code="alterPage.createdBy" default="Created By" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'createdBy', 'errors')}">
                                    <g:select name="createdBy.id" from="${net.comic.entities.User.list()}" optionKey="id" value="${alterPageInstance?.createdBy?.id}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dateCreated"><g:message code="alterPage.dateCreated" default="Date Created" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'dateCreated', 'errors')}">
                                    <g:datePicker name="dateCreated" value="${alterPageInstance?.dateCreated}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description"><g:message code="alterPage.description" default="Description" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'description', 'errors')}">
                                    <g:textField name="description" value="${fieldValue(bean: alterPageInstance, field: 'description')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="disabled"><g:message code="alterPage.disabled" default="Disabled" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'disabled', 'errors')}">
                                    <g:checkBox name="disabled" value="${alterPageInstance?.disabled}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="homePage"><g:message code="alterPage.homePage" default="Home Page" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'homePage', 'errors')}">
                                    <g:select name="homePage.id" from="${net.comic.entities.Page.list()}" optionKey="id" value="${alterPageInstance?.homePage?.id}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="imagePath"><g:message code="alterPage.imagePath" default="Image Path" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'imagePath', 'errors')}">
                                    <g:textField name="imagePath" value="${fieldValue(bean: alterPageInstance, field: 'imagePath')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastUpdated"><g:message code="alterPage.lastUpdated" default="Last Updated" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'lastUpdated', 'errors')}">
                                    <g:datePicker name="lastUpdated" value="${alterPageInstance?.lastUpdated}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title"><g:message code="alterPage.title" default="Title" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'title', 'errors')}">
                                    <g:textField name="title" value="${fieldValue(bean: alterPageInstance, field: 'title')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="rate"><g:message code="alterPage.rate" default="Rate" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alterPageInstance, field: 'rate', 'errors')}">
                                    <g:textField name="rate" value="${fieldValue(bean: alterPageInstance, field: 'rate')}" />

                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
